These tags are used directly inside the items. when you have the item in your hand it will use the following data to
create the UI.
Note that all the tags below are inside the object "new_ui"."1". 1 is the id of the UI
currently only 1-10 are supported meaning you can add up to 10 unique UI's.
Example: {new_ui:{1:{ <--below data--> }}}. This will slow the servers TPS when using the item.
| Name |
Type |
Default Value |
Description |
| display |
Object |
|
The name for the button that shows up in-game.
| Name |
Type |
Default | >
Description |
| title |
RAW JSON |
'{"translation":"container.chest"}' | >
The title of the UI located at the top. |
|
buttons |
Object |
|
A item inside the Inventory that will do stuff when you click on it.
| Name |
Type |
Description |
| name |
RAW JSON |
This is the name that will be on the button when you hover over it. |
| slot |
0 - 26 |
What slot the button is located inside the UI. |
| custom_button |
Object |
Optional custom item to use for the button. default button item is minecraft:stone_button
| Name |
Type |
Description |
| item |
String |
Minecraft item to use. |
| count |
Integer |
The number of items to place in that slot. |
| nbt |
Object |
NBT data to apply to the item. |
|
| clickEvent |
Object |
Functions of the button. What the button does when you click on it.
| Name |
Type |
Description |
| open_ui |
Object |
Will open the UI from its id.
| Name |
Type |
Description |
| id |
Integer |
The id of the ui to open. Must be on the same item. |
|
| close_ui |
Boolean |
When set to true it will kick the player from the UI. |
| say |
Object |
Use the players name inside text
| Name |
Type |
Description |
| text |
String |
The text to say. |
|
|
|
| fill_empty |
Boolean / Object |
|
If set to true it will use a preset item, looks like the background when RP is installed. or you can define
your own item.
| Name |
Type |
Description |
| item |
String |
Item's id that will be placed in all the empty slots |
| count |
Integer |
The amount of items to place. |
| nbt |
Object |
(Optional) The NBT to apply to this item. |
|
| filler |
Array Object |
|
Place items to fill unwanted slots in the UI.
| Name |
Type |
Description |
| item |
String |
Item's id that will be placed in all the empty slots |
| count |
Integer |
The amount of items to place. |
| nbt |
Object |
(Optional) The nbt to apply to this item. |
| slots |
Integer Array |
Contains all the slot numbers where it will place this item inside the UI. |
|
| icon |
Object |
|
Place items to fill unwanted slots in the UI.
| Name |
Type |
Description |
| item |
String |
The base item to use for the icon. |
| count |
Integer |
The amount of items to place. |
| CustomModelData |
Integer |
The customModelData to apply to the icon/item. |
| nbt |
Object |
(Optional) The nbt to apply to this item. |
|
| inventory |
Object |
|
(Not added) Slots that will act like an inventory.
| Name |
Type |
Description |
| slots |
Integer Array |
Slots to save/load the items to. This will be overridden by any other settings. |
| auto_save |
Object |
Where to save these slots to.
| Name |
Type |
Description |
| storage |
Enum |
storage="item" it will save the slot item onto the selecteditem. |
| blacklisted_items |
String Array |
blacklist items that it will not save the items to. |
| visable |
Boolean |
Show the items via lore when the container isnt open, like shulker boxes. |
|
|